package com.personal.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.management.relation.Role;
import java.util.Date;

public class TMember {
    private Integer memid;

    private String memlogname;

    private String mempassword;

    private String memrealname;

    private String memsex;

    private String mememail;

    private Integer memcard;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cardstart;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cardend;

    private Integer memrole;

    private String memstates;

    private TCard card;
    private TRole trole;

    @Override
    public String toString() {
        return "TMember{" +
                "memid=" + memid +
                ", memlogname='" + memlogname + '\'' +
                ", mempassword='" + mempassword + '\'' +
                ", memrealname='" + memrealname + '\'' +
                ", memsex='" + memsex + '\'' +
                ", mememail='" + mememail + '\'' +
                ", memcard=" + memcard +
                ", cardstart=" + cardstart +
                ", cardend=" + cardend +
                ", memstates='" + memstates + '\'' +
                ", memrole=" + memrole +
                ", card=" + card +
                ", trole=" + trole +
                '}';
    }

    public TRole getTrole() {
        return trole;
    }

    public void setTrole(TRole trole) {
        this.trole = trole;
    }

    public Integer getMemrole() {
        return memrole;
    }

    public void setMemrole(Integer memrole) {
        this.memrole = memrole;
    }

    public TCard getCard() {
        return card;
    }

    public void setCard(TCard card) {
        this.card = card;
    }

    public Integer getMemid() {
        return memid;
    }

    public void setMemid(Integer memid) {
        this.memid = memid;
    }

    public String getMemlogname() {
        return memlogname;
    }

    public void setMemlogname(String memlogname) {
        this.memlogname = memlogname == null ? null : memlogname.trim();
    }

    public String getMempassword() {
        return mempassword;
    }

    public void setMempassword(String mempassword) {
        this.mempassword = mempassword == null ? null : mempassword.trim();
    }

    public String getMemrealname() {
        return memrealname;
    }

    public void setMemrealname(String memrealname) {
        this.memrealname = memrealname == null ? null : memrealname.trim();
    }

    public String getMemsex() {
        return memsex;
    }

    public void setMemsex(String memsex) {
        this.memsex = memsex == null ? null : memsex.trim();
    }

    public String getMememail() {
        return mememail;
    }

    public void setMememail(String mememail) {
        this.mememail = mememail == null ? null : mememail.trim();
    }

    public Integer getMemcard() {
        return memcard;
    }

    public void setMemcard(Integer memcard) {
        this.memcard = memcard;
    }

    public Date getCardstart() {
        return cardstart;
    }

    public void setCardstart(Date cardstart) {
        this.cardstart = cardstart;
    }

    public Date getCardend() {
        return cardend;
    }

    public void setCardend(Date cardend) {
        this.cardend = cardend;
    }

    public String getMemstates() {
        return memstates;
    }

    public void setMemstates(String memstates) {
        this.memstates = memstates == null ? null : memstates.trim();
    }
}